package com.lzs.bootsafety.business.oss.mapper;

import com.github.pagehelper.Page;
import com.lzs.bootsafety.business.oss.entity.SysConfig;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;
/**
 *  云存储配置
 *  @author  zhanshi Liu
 *  @date    2020/04/18
 *  @website www.jhmsona.cn
 *
 */
@Repository
public interface SysConfigMapper {

    int insert(SysConfig record);

    /**
     * 分页全部
     * @return
     */
    Page<SysConfig> selectConfigs(SysConfig sysConfig);

    /**
     * 以键值对查询
     * @return
     */
    Map<String,Object> selectConfigs();

    int modifyConfings(@Param("map") Map<String ,Object> map);

    int insertSelective(SysConfig record);
}